import java.util.Scanner;

public class Homework_2 {
	public static void main(String[] args) {
		/* 2:输入三个数，从小到大的方式输出三个数 */
		Scanner in = new Scanner(System.in);
		System.out.println("请输入第一个数：");
		int a = in.nextInt();
		System.out.println("请输入第二个数：");
		int b = in.nextInt();
		System.out.println("请输入第三个数：");
		int c = in.nextInt();
		if (a <= b && a <= c) {
			if (b > c) {
				System.out.println(a + " " + c + " " + b);
			} else {
				System.out.println(a + " " + b + " " + c);
			}
		} else if (b <= a && b <= c) {
			if (a < c) {
				System.out.println(b + " " + a + " " + c);
			} else {
				System.out.println(b + " " + c + " " + a);
			}
		} else if (c <= a && c <= b) {
			if (a < b) {
				System.out.println(c + " " + a + " " + b);
			} else {
				System.out.println(c + " " + b + " " + a);
			}
		}
	}
}
